import React from 'react'
import store from './redux/store'
import { push } from './redux/actions'
import useSubscribe from './useSubscribe'
export default function XXX() {
  console.log('xxx组件更新了')
  useSubscribe((state) => {
    return state.zs.xxx
  }, 'xxx')
  return (
    <div>
      <button
        onClick={() => {
          store.dispatch(push(9))
        }}
      >
        xxx按钮
      </button>
      <ul>
        {store.getState().zs.xxx.map((item, index) => {
          return <li key={index}>{item}</li>
        })}
      </ul>
    </div>
  )
}
